package com.oldman.service;

import com.oldman.domain.Elderlyinfo;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("oldman-gov")
public interface ElderlyinfoService {
    @GetMapping(value = "/{elderlyId}")
    AjaxResult getInfo(@PathVariable("elderlyId") Long elderlyId);

    @PostMapping("elderly/authUser")
    AjaxResult authUser(@RequestBody String idcard,String phone);

    @PostMapping("elderly/regist")
    AjaxResult regist(@RequestBody Elderlyinfo e);
}
